//
//  NetworkingTools.h
//  Coding_My
//
//  Created by showXxie on 2017/8/21.
//  Copyright © 2017年 sooxie. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>


typedef enum {
    Get = 0,
    Post,
    Put,
    Delete
} MethodType;



@interface NetworkingTools : AFHTTPSessionManager

+(instancetype)share;


-(void)requestMethod:(MethodType)method path:(NSString *)path
withParams:(NSDictionary*)params
andBlock:(void (^)(id data, NSError *error))block;


//-(void)requestMethod:(Method)method path:(NSString *)path
//          withParams:(NSDictionary*)params andNSProgress:(NSProgress *)progress
//            andBlock:(void (^)(id data, NSError *error))block;


@end
